export const useGlobalStore = defineStore('globalStore', {
    state: () => ({
        userInfo: null as any, // 用户信息
        mapLoaded: false,
    }),
    actions: {
        changeUserInfo(data: any) {
            this.userInfo = data
        },
        changeMapLoaded(data: any) {
            this.mapLoaded = data
        },
    },
})
